package com.fitso.web.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

public class DWRService {
	public HttpServletRequest getRequest() {
		return getWebContext().getHttpServletRequest();
	}

	public HttpSession getSession() {
		return getWebContext().getSession();
	}

	private WebContext getWebContext() {
		return WebContextFactory.get();
	}
}
